package com.fjnldx.mes.domain.pojo.alarm.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;

/**
 * 解除类型
 */
public enum RelieveTypeEnum {
    RESTORE("恢复到规则", 0),
    AUTO("定时自动", 1),
    MANUAL("手动解除", 2),
    ;

    //恢复方式
    private final String relieve;

    //恢复值
    @JsonValue
    @EnumValue
    private final Integer value;

    RelieveTypeEnum(String relieve, int value) {

        this.relieve = relieve;
        this.value = value;
    }

    public String getRelieve() {
        return relieve;
    }

    public int getValue() {
        return value;
    }
}
